package com.fss.approval1.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fss.common.annotation.Excel;
import com.fss.common.core.domain.BaseEntity;

/**
 * 贷款审核对象 loan_approval
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
public class LoanApproval1 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 贷款审核ID */
    private Long approvalId;

    /** 贷款申请ID，关联贷款申请表 */
    @Excel(name = "贷款申请ID，关联贷款申请表")
    private Long applicationId;

    /** 审核人ID，关联员工表 */
    @Excel(name = "审核人ID，关联员工表")
    private Long userId;

    /** 审核状态（0待审核 1通过 2拒绝） */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=通过,2=拒绝")
    private String approvalStatus;

    /** 审核备注或意见 */
    @Excel(name = "审核备注或意见")
    private String approvalComments;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalDate;

    public void setApprovalId(Long approvalId) 
    {
        this.approvalId = approvalId;
    }

    public Long getApprovalId() 
    {
        return approvalId;
    }
    public void setApplicationId(Long applicationId) 
    {
        this.applicationId = applicationId;
    }

    public Long getApplicationId() 
    {
        return applicationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }
    public void setApprovalComments(String approvalComments) 
    {
        this.approvalComments = approvalComments;
    }

    public String getApprovalComments() 
    {
        return approvalComments;
    }
    public void setApprovalDate(Date approvalDate) 
    {
        this.approvalDate = approvalDate;
    }

    public Date getApprovalDate() 
    {
        return approvalDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("approvalId", getApprovalId())
            .append("applicationId", getApplicationId())
            .append("userId", getUserId())
            .append("approvalStatus", getApprovalStatus())
            .append("approvalComments", getApprovalComments())
            .append("approvalDate", getApprovalDate())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
